#include "Decal.h"

#include "InputHandler.h"
#include "Utility.h"
#include "GameGlobals.h"
#include "Resources.h"
#include "BaseMoveable.h"

LINKCLASSTONAME("ent_decal", Decal);

Decal::Decal(sf::RenderWindow *App) : BaseEntity(App)
{
	DrawOrder = 0;

	sprDecal.SetTexture(*Resources::Instance()->RequestImage("scorch"));
	sprDecal.SetOrigin(sprDecal.GetSize().x / 2, (sprDecal.GetSize().y / 2) + 3);
}

Decal::~Decal(void)
{
}

void Decal::Think()
{

}

void Decal::Draw()
{
	sprDecal.SetRotation(GetAngle());
	sprDecal.SetPosition(GetSFMLPos());
	pRender->Draw(sprDecal);
}
